# -*- coding: utf-8 -*-
"""
    moe.wiki.forms
    ~~~~~~~~~~~~~~

    Wiki forms.

    :copyright: 2009 by tipfy.org.
    :license: BSD, see LICENSE.txt for more details.
"""
from wtforms import fields as f, validators as v

from tipfy.i18n import lazy_gettext

from moe.forms import BaseForm, TagsField


class WikiRevisionForm(BaseForm):
    title = f.TextField(
        label=lazy_gettext('Title'),
        validators=[v.Required()]
    )
    body = f.TextAreaField(
        label=lazy_gettext('Content'),
        validators=[v.Required()]
    )
    note = f.TextField(
        label=lazy_gettext('Change note')
    )
    tags = TagsField(
        label=lazy_gettext('Tags'),
        description=lazy_gettext('Separated by comma. For example: people, learning, fun'),
        validators=[v.Required()]
    )
